import java.util.Scanner;

import Herotestw.Ultraman;

public class UltramanTest {
    public static void main(String[] args) {
        //构造方法初始化
        System.out.println("#1 测试子类调用父类构造方法的情况");
        Ultraman ul1 = new Ultraman();
        Ultraman ul2 = new Ultraman("名字", 0, 100, 100, "技能", "人间体名", "地球防卫部名");
        System.out.println("");

        //重写测试
        System.out.println("#2 1.在子类的重写方法中调用被重写的父类方法 ");
        System.out.println("//将输出元父类方法的语句");
        ul1.target();//在子类重写方法中调用被重写的父类方法
        System.out.println("");

        //检录输入值
        Scanner input = new Scanner(System.in);
        System.out.println("请输入英雄名");
        String inputn = input.nextLine();
        System.out.println("请输入年龄");
        int inputa = input.nextInt();
        System.out.println("请输入攻击力");
        int inputf = input.nextInt();
        System.out.println("请输入防御力");
        int inputd = input.nextInt();
        input.nextLine();
        System.out.println("请输入技能");
        String inputs = input.nextLine();
        System.out.println("输入人间体名");
        String loadh = input.nextLine();
        System.out.println("输入防卫部名");
        String loadd = input.nextLine();
        ul2.setUltramanInfo(inputn,inputa,inputf,inputd,inputs,loadh,loadd);
        ul2.getUltramanInfo();
        input.close();

    }
}